<?php

class UserModel extends RelationModel{

protected $_link=array(

		'user_msg'=>array(
				'mapping_type'=>HAS_ONE,
				'foreign_key'=>'user_id',
				'as_fields'=>'student_id,realname,sex,school,profession,class,department,province,city,phone,email,image,focus,be_focus'

		),
		'user_friends'=>array(
				'mapping_type'=>HAS_ONE,
				'foreign_key'=>'user_id',
				'as_fields'=>'id,focus_ids,befocus_ids'

		),

	);


}
?>